import sys


class PeriodicColType(object):
    pass



class CompleteColType(object):
    pass


class EventColType(object):
    head_sg1 = "05 01 00 07"
    head_data_length = ""
    head_sg3 = "00 00 00 04 01 01 01 00"
    payload_length = "00 00 00 36"
    fun_code = "12 06"
    trigger_event_version = "00 0E"
    trigger_event_num = "00 02"
    msg_num = 0
    msg_start_flag = "2A 2F"
    msg_end_flag = "2F 2A"

    def __init__(self):
        self.msg_info_buf = []
        # 表格输入的信息
        self.can_id = -1
        self.msg_msb = -1
        self.msg_lsb = -1
        self.condition = 1
        self.value = 0
        self.before_time = 0
        self.after_time = 0

        # 需要收集的ID
        self.tag_can_id = []
